/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package prognosisdataalgo;

import java.text.SimpleDateFormat;
import java.util.Calendar;

/**
 * @author ApT
 */
public class DayFactors {

    private double MONDAY;
    private double WENSDAY;
    private double TUESDAY;
    private double WEDNESDAY;
    private double THURSDAY;
    private double FRIDAY;
    private double SATURDAY;
    private double SUNDAY;
    private double[] days;

    public DayFactors(double MONDAY, double WENSDAY, double TUESDAY, double WEDNESDAY, double THURSDAY, double FRIDAY, double SATURDAY, double SUNDAY) {
        this.MONDAY = MONDAY;
        this.WENSDAY = WENSDAY;
        this.TUESDAY = TUESDAY;
        this.WEDNESDAY = WEDNESDAY;
        this.THURSDAY = THURSDAY;
        this.FRIDAY = FRIDAY;
        this.SATURDAY = SATURDAY;
        this.SUNDAY = SUNDAY;
        days = new double[]{this.MONDAY, this.WENSDAY, this.TUESDAY, this.WEDNESDAY, this.THURSDAY, this.FRIDAY, this.SATURDAY, this.SUNDAY};
    }

    public double getMONDAY() {
        return MONDAY;
    }

    public double getWENSDAY() {
        return WENSDAY;
    }

    public double getTUESDAY() {
        return TUESDAY;
    }

    public double getWEDNESDAY() {
        return WEDNESDAY;
    }

    public double getTHURSDAY() {
        return THURSDAY;
    }

    public double getFRIDAY() {
        return FRIDAY;
    }

    public double getSATURDAY() {
        return SATURDAY;
    }

    public double getSUNDAY() {
        return SUNDAY;
    }

    public double getCurrentDayValue() {
        double result = 0;

        SimpleDateFormat f = new SimpleDateFormat("dd-MM-yyyy");
        Calendar c = Calendar.getInstance();
        int currentDay = c.get(Calendar.DAY_OF_WEEK);
        result = days[currentDay - 1];

        return result;
    }
}
